<%@page contentType="text/html" pageEncoding="UTF-8"%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>favorite</title>
        <link href="../css/new.css" rel="stylesheet"/>
        <script type="text/javascript" src="../js/commons/commons.js"></script>
        <script type="text/javascript" src="../js/commons/prototype.js"></script>
        <script type="text/javascript" src="../js/commons/jquery_xml.js"></script>
        <script type="text/javascript" src="../js/favorite/tableList.js"></script>
        <script type="text/javascript">
            window.onload = startOnload;
            
            function startOnload() {
                ajaxAction();
            }
            
            function ajaxAction() {
                var url = '../XmlResponseServlet?s=favorite';
                var pars = '';
                var ajax = new Ajax.Request(
                    url,
                    {method: 'get', parameters: pars, onComplete: ajaxResponse}
                );
            }
            
            function ajaxResponse(result) {
                //alert(result.responseText);
                var xmlData = result.responseText;
                powerhua.table_list.createListTable('list_title', 'list_content', xmlData);
            }
        </script>
    </head>
    
    <body>
        
        <div id="header_top_nav">
            <strong>powerhua</strong> &nbsp; | &nbsp;
            <a href="#">设置</a> &nbsp; | &nbsp; 
            <a href="#">帮助</a> &nbsp; | &nbsp; 
            <a href="#">退出</a>&nbsp;
        </div>
        
        <div id="header_nav">
            <ul>
                <li><a href="#">我的工作台</a></li>
                <li><a href="#">文档管理</a></li>
                <li><a href="#">收藏夹</a></li>            
            </ul>
        </div>    
        
        
        <div id="footer">Copyright © 2007</div>
        
        <div id="left">left test</div>
        
        <div id="toolbar">
            <table id="list_toolbar" width="100%" border="0" cellspacing="0" cellpadding="0">
                <tbody>
                    <tr height="25">
                        <td>&nbsp;<img src="../images/favorite/icon_pencilandpad.gif"> 新建</td>
                    </tr>
                </tbody>
            </table>
        </div>
        
        <div id="content_title">
            <table id="list_title" width="100%" class="title_table">
                <tbody>
                    <tr>
                        <td>&nbsp;</td>
                    </tr>
                </tbody>
            </table>
        </div>
        
        <div id="content">
            <table id="list_content" width="100%" class="table_list">
                <tbody>
                    <tr>
                        <td>&nbsp;</td>
                    </tr>
                </tbody>
            </table>
        </div>       
    </body>
    
</html>
